/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hvtt.web.controllerUtils;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Administrator
 */
@ManagedBean
@SessionScoped
public class ThemeUtils implements Serializable {

    private final String defaultTheme = "bootstrap";    
    private String cssNameFixTheme="";
    public String getDefaultTheme() {
        return defaultTheme;
    }
    private String theme = "";
    
    public String getTheme() {
        if (theme.equalsIgnoreCase("")) {
            this.setTheme(defaultTheme);
        }
        return theme;
    }
    
    public void setTheme(String theme) {
        this.theme = theme;
    }
    
    public ThemeUtils() {
    }

    public String getCssNameFixTheme() {
        if (cssNameFixTheme.equalsIgnoreCase("")) {
            this.setCssNameFixTheme("/Administrator/resourceThemes/defaultTheme/css/"+defaultTheme+"/new"+defaultTheme+".css");
        }
        return cssNameFixTheme;
    }

    public void setCssNameFixTheme(String cssNameFixTheme) {
        this.cssNameFixTheme = cssNameFixTheme;
    }
    
}
